//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Mapping Application Block
//===============================================================================

using System;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;

namespace EntLibContrib.Mapping.Configuration
{
	/// <summary>
	/// Configuration data defining MapperDataBase. This configuration section defines the name and type
	/// of the IMapper class
	/// </summary>
	[Assembler(typeof(TypeInstantiationAssembler<IMapper, MapperBaseData>))]
	public class MapperBaseData : NameTypeConfigurationElement
	{
		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="MapperBaseData"/> class.
		/// </summary>
		public MapperBaseData ()
			: base()
		{
		}

		/// <summary>
		/// Initialize a new instance of the <see cref="MapperBaseData"/> class with a name and the type of <see cref="IMapper"/>.
		/// </summary>
		/// <param name="name">The name of the configured <see cref="IMapper"/>.</param>
		/// <param name="type">The type of <see cref="IMapper"/>.</param>
		public MapperBaseData(string name, Type type)
			: base(name, type)
		{
		}
		#endregion
	}
}